diff options
Diffstat (limited to 'tests/ui/coherence/impl[t]-foreign-for-foreign[t].stderr')
-rw-r--r-- | tests/ui/coherence/impl[t]-foreign-for-foreign[t].stderr | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/ui/coherence/impl[t]-foreign-for-foreign[t].stderr b/tests/ui/coherence/impl[t]-foreign-for-foreign[t].stderr new file mode 100644 index 000000000..92346c291 --- /dev/null +++ b/tests/ui/coherence/impl[t]-foreign-for-foreign[t].stderr @@ -0,0 +1,25 @@ +error[E0117]: only traits defined in the current crate can be implemented for types defined outside of the crate + --> $DIR/impl[t]-foreign-for-foreign[t].rs:11:1 + | +LL | impl Remote for Rc<Local> { + | ^^^^^^^^^^^^^^^^--------- + | | | + | | `Rc` is not defined in the current crate + | impl doesn't use only types from inside the current crate + | + = note: define and implement a trait or new type instead + +error[E0117]: only traits defined in the current crate can be implemented for types defined outside of the crate + --> $DIR/impl[t]-foreign-for-foreign[t].rs:16:1 + | +LL | impl<T> Remote for Arc<T> { + | ^^^^^^^^^^^^^^^^^^^------ + | | | + | | `Arc` is not defined in the current crate + | impl doesn't use only types from inside the current crate + | + = note: define and implement a trait or new type instead + +error: aborting due to 2 previous errors + +For more information about this error, try `rustc --explain E0117`. |